/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.noteit.db;

import java.sql.Connection;
import java.sql.SQLException;
import org.h2.tools.Server;

/**
 *
 * @author Owner
 */
public class h2debugger extends Thread{
    
    private Connection con;
    
    public h2debugger(Connection con){
        this.con = con;
    }
    
    public void startWebServer(){
        try {
            Server.startWebServer(con);
        } catch (SQLException ex) {
            ex.printStackTrace();
        }
    }
    
    @Override
    public void run(){
        this.startWebServer();
    }

    public Connection getCon() {
        return con;
    }

    public void setCon(Connection con) {
        this.con = con;
    }

}
